<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">


    {if ($row['send_type']==1&&$acct_id==0)||($row['send_type']==2&&$acct_id>0)||$row['status']==0}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="statusList" item="vo"}
                {if ($key>"0.1"||$key==-1)&&$key!=1}
                <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" {in
                        name="key" value="$row.status" }checked{/in} value="{$key}" {if $row.status=='99' ||
                        ($row.status=='0.1' &&$key!='0.5' &&$key!='-1' )|| ($row.status=='0.5' &&
                        in_array($key,[0.5,1,99]))||($row.status=='0.6' && !in_array($key,[0.6,1]) )|| ($row.status=='1'
                        && !in_array($key,[1,99]) )} disabled{/if} /> {$vo}</label>
                {/if}
                {/foreach}
            </div>
        </div>
    </div>
    {/if}
    {if $acct_id}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('发货平台')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[send_type]-1"><input id="row[send_type]-1" name="row[send_type]" type="radio" {if
                        $row.status!='0.1' }disabled{/if} value="1" {in name="1" value="$row.send_type" }checked{/in} />
                    总平台</label>
                <label for="row[send_type]-2"><input id="row[send_type]-2" name="row[send_type]" type="radio" {if
                        $row.status!='0.1' }disabled{/if} value="2" {in name="2" value="$row.send_type" }checked{/in} />
                    子平台</label>
            </div>

        </div>
    </div>
    {/if}
    <div data-favisible="status==-1">
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('审核原因')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-msg" class="form-control" name="row[msg]" type="text" value="{$row.msg|htmlentities}">
            </div>
        </div>
    </div>
    {if $row.status=='0.5'&& (($row.send_type==1&&$acct_id==0)||($row.send_type==2&&$acct_id>0))}
    <div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('商品件数')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-num" data-rule="required"  class="form-control" name="row[num]" type="number" value="{$row.num|htmlentities}">
            </div>
        </div>
    </div>
    {/if}
    <!-- <div data-favisible="status>0.6">
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('预计天数')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-send_day" class="form-control" name="row[send_day]" type="number"
                    value="{$row.send_day|htmlentities}">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('运输备注')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-mark" class="form-control" name="row[mark]" type="text" value="{$row.mark|htmlentities}">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Express_com')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-express_id" data-rule="" data-source="category/selectpage" class="form-control selectpage"
                    data-params='{"custom[type]":"wl","custom[type]":"wl"}' name="row[express_id]" type="text"
                    value="{$row.express_id|htmlentities}">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Express_no')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-express_no" class="form-control" name="row[express_no]" type="text"
                    value="{$row.express_no|htmlentities}">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('物流凭证')}:</label>
            <div class="col-xs-12 col-sm-8">
                {if ($row['send_type']==1&&$acct_id!=0)||($row['send_type']==2&&$acct_id==0)}
                <ul class="row list-inline faupload-preview" id="p-express_images" data-listidx="0">
                    {php}
                    $express_images=explode(',',$row['express_images']);
                    {/php}
                    {foreach name="express_images" item="vo" key="k"}
                    <li class="col-xs-3">
                        <a href="{$vo}" data-url="{$vo}" target="_blank" class="thumbnail">
                            <img src="{$vo}" onerror="this.src='/kai.php/ajax/icon?suffix=png';this.onerror=null;"
                                class="img-responsive">
                        </a>
                    </li>
                    {/foreach}
                </ul>
                {else}
                <div class="input-group">
                    <input id="c-express_images" class="form-control" size="50" name="row[express_images]" type="text"
                        value="{$row.express_images|htmlentities}">
                    <div class="input-group-addon no-border no-padding">
                        <span>
                            <button type="button" id="faupload-express_images" class="btn btn-danger faupload"
                                data-input-id="c-express_images"
                                data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp"
                                data-multiple="true" data-preview-id="p-express_images"><i class="fa fa-upload"></i>
                                {:__('Upload')}</button>
                        </span>
                    </div>
                    <span class="msg-box n-right" for="c-express_images"></span>
                </div>
                <ul class="row list-inline faupload-preview" id="p-express_images"></ul>
                {/if}
            </div>
        </div>
    </div> -->

    {if $row.status=='99'||$row.status=='-1'||$row.status=='0.6' }

    {else}

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
    {/if}
</form>